﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using NWN.GDY.Service.Core;
using NWN.GDY.Service.Common;

namespace NWN.GDY.Web
{
    public partial class Error : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblErrorMsg.Text = "网络异常";
            if (Request.QueryString["eid"] != null)
            {
                int eid = GDYConsts.ReturnDefine.Unknown;
                int.TryParse(Request.QueryString["eid"].ToString(), out eid);
                string emsg = "网络异常";
                if (eid == GDYConsts.ReturnDefine.Unknown)
                    emsg = "网络异常";
                else if (eid == GDYConsts.ReturnDefine.NOTABLE)
                    emsg = "您所选的游戏桌不存在";
                else if (eid == GDYConsts.ReturnDefine.SeatIsOccupied)
                    emsg = "您所选的位子已被占用";
                else if (eid == GDYConsts.ReturnDefine.NickAlreadyInTable)
                    emsg = "您所选的游戏桌中存在相同昵称的用户,请改名";
                else if (eid == GDYConsts.ReturnDefine.Exception)
                    emsg = "您所选的游戏桌不存在";
                else
                    emsg = "网络异常";
                lblErrorMsg.Text = emsg;
            }
        }
    }
}
